Skip to content

Fix GaeaNodesCopy serialization to text#581

Merged
Zehir merged 1 commit intogaea-godot:2.0from
Zehir:fix_node_copy_json
Feb 18, 2026
Merged

Fix GaeaNodesCopy serialization to text#581
Zehir merged 1 commit intogaea-godot:2.0from
Zehir:fix_node_copy_json

Conversation

@Zehir
Copy link
Collaborator

@Zehir Zehir commented Feb 16, 2026

I am not sure what happen in #560. I think I just copy paste the wrong code when rebasing but the serialize/deserialize just does not works.

I remplaced the JSON to a other text based string. The JSON format was too complex to deserialize the many custom types Godot offer. So the quick solution here is to use Godot built-in methods.

I know it's no more a JSON but it's still easy to read/edit

It's using the var_to_str and str_to_var but does not allow Object to be parsed for security reasons. See issue #80562 on Godot repo.

@Zehir Zehir requested review from BenjaTK and cullumi February 16, 2026 19:10
@BenjaTK BenjaTK added 🐞 bug Something isn't working topic: graph-nodes New nodes or changes related to GaeaNodeResource. labels Feb 17, 2026
Copy link
Collaborator

@BenjaTK BenjaTK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@BenjaTK
Copy link
Collaborator

BenjaTK commented Feb 18, 2026

Could we add a test for this? Specifically for serialization and deserialization. Under the Other category.

@Zehir Zehir merged commit 03f3b9e into gaea-godot:2.0 Feb 18, 2026
5 checks passed
@Zehir Zehir deleted the fix_node_copy_json branch February 18, 2026 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞 bug Something isn't working topic: graph-nodes New nodes or changes related to GaeaNodeResource.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants